import numpy as np
from pylab import *

if __name__ == '__main__':
    face_inds = np.loadtxt('./face_ind.txt').astype(np.int32)
    pts=None
    for f_id in face_inds :
        x = int(f_id / 256)
        y = f_id % 256
        if pts is None:
            pts = [x,y]
        else:
            pts = np.vstack((pts,[x,y]))

    plt.plot(pts.transpose()[1],pts.transpose()[0],'r')
    plt.show()

